﻿<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <title>发件箱</title>
    <script type="text/javascript" src="scripts/jquery.js"></script>
    <script type="text/javascript" src="scripts/lib.js"></script>
    <script type="text/javascript">
        function RemoveMsg(Id) {
            if (confirm("确认要删除吗?")) {
                $("#span_" + Id).html('<td colspan="4" style="color:red">删除中......</td>');
                $.ajax({
                    url: '/mvcajax/msg/DeleteMsg',
                    type: 'post',
                    data: '{"Id":' + Id + '}',
                    dataType: 'text',
                    contentType: 'application/json; charset=utf-8',
                    success: function (data) {
                        $("#msg_item_" + Id).html('<td colspan="4" style="color:red">' + data + '</td>');
                    },
                    error: function (xhr) {
                        $("#msg_item_" + Id).html('<td colspan="4" style="color:red">' + xhr.responseText + '</td>');
                    }
                });
            }
        }
</script>
    <link rel="stylesheet" href="css/cnblogs.css" type="text/css">
</head>
<body>
    <form name="ListForm" method="post" id="ListForm">
        <div id="main_wrapper">
            <div id="sideleft">
                <div style="padding-left: 20px; width: 95%">
                    <div id="navcontainer" class="floatright" style="margin-top: 1px">
                        <ul id="navlist">
                            <li><a href="inbox.html">收件箱</a></li>
                            <li><a href="outbox.html" class="current">发件箱</a></li>
                        </ul>
                    </div>
                    <div class="clear"></div>
                    <table width="100%" cellpadding="5" cellspacing="0" border="0" class="bt">
                        <tbody>
                            <tr>
                                <td width="50px">状态</td>
                                <td width="100px">收件人</td>
                                <td>标题</td>
                                <td width="150px" align="center">时间</td>
                                <td width="60px" align="center">处理</td>
                            </tr>


                            <tr id="msg_item_940612">
                                <td class="gray">未读</td>
                                <td class="gray">dudu</td>
                                <td><a href="http://space.cnblogs.com/message/940612/" title="演示"><b>演示</b></a></td>
                                <td align="left" class="gray">2014-05-24 22:26</td>
                                <td align="center" style="width: 40px;"><a class="click_del_off" onclick="RemoveMsg(940611)" title="删除">删除</a></td>

                            </tr>
                            <tr id="msg_item_940607">
                                <td class="gray">已读</td>
                                <td class="gray">dudu</td>
                                <td><a href="http://space.cnblogs.com/message/940607/" title="演示">演示</a></td>
                                <td align="left" class="gray">2014-05-24 21:59</td>
                                <td align="center" style="width: 40px;"><a class="click_del_off" onclick="RemoveMsg(940611)" title="删除">删除</a></td>
                            </tr>
                            <tr id="msg_item_940579">
                                <td class="gray">已读</td>
                                <td class="gray">dudu</td>
                                <td><a href="http://space.cnblogs.com/message/940579/" title="演示">演示</a></td>
                                <td align="left" class="gray">2014-05-24 21:27</td>
                                <td align="center" style="width: 40px;"><a class="click_del_off" onclick="RemoveMsg(940611)" title="删除">删除</a></td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
            <div id="sideright">
                > 当前用户：小菜<br /><br />
                > <a href="compose.html" class="big blue">撰写新短消息</a><br />
            </div>
        </div>
    </form>
</body>
</html>
